package com.woniu.deal.order.controller;

import com.woniu.common.entity.DealServeraccount;
import com.woniu.common.entity.Result;
import com.woniu.deal.order.service.DealServeraccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/serveraccount")
public class ServerAccountController {

    @Autowired
    DealServeraccountService dealServeraccountService;
    @PostMapping("/")
    public Result<Integer> createServerAccount(Integer id){
        Integer serverAccount_id = dealServeraccountService.createServerAccount(id);
        return Result.ok(serverAccount_id);
    }
    
}
